import java.util.Scanner;

public class Main {

        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            boolean n = true;

            while (n) {
                int sum=0;
                System.out.println("输入1代表是，输入0代表否");

                System.out.print("1.最近14天内是否有发热：");
                sum += sc.nextInt();

                System.out.print("2.是否持续咳嗽：");
                sum += sc.nextInt();

                System.out.print("3.核酸检测是否为阳性：");
                sum+=sc.nextInt();

                if(sum==3){
                    System.out.println("您大概率感染，请做好隔离，等待专业人员");
                } else if (sum==2) {
                    System.out.println("您疑似感染，请前往医院就诊，避免接触他人");
                } else if (sum==1) {
                    System.out.println("您可能感染，请做好防护，若出现症状请及时就医");
                }else{
                    System.out.println("你没有感染，请继续做好防护");
                }
                System.out.println();
                System.out.print("是否检测其他人：");

                if(sc.nextInt()==1) {
                    n = true;
                }else {
                    n = false;
                }
            }
        }



    public static void main3(String[] args) {
        Scanner sc=new Scanner(System.in);
        String name;
        double price;
        int num;
        double discount;
        System.out.println("输入Y继续输入，输入N结束输入");

        while(!sc.next().equals("Q")){
            System.out.println("商品名称:");
            name=sc.next();
            System.out.println("商品单价:");
            price=sc.nextDouble();
            System.out.println("商品数量:");
            num=sc.nextInt();
            System.out.println("商品折扣:");
            discount=sc.nextDouble();

            System.out.println("学院超市账单");
            System.out.println("商品名称:" + name);
            System.out.println("商品单价:" + price);
            System.out.println("商品数量:" + num);
            System.out.println("商品折扣:" + discount);
            System.out.println("付款:" + (num*price*discount/10));

        }

    }

    public static void main2(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        double price;
        if(n<=10){
            price=n;
        }else {
            price=n*0.8;
        }
        System.out.println("应付:" + price + "   " + "剩余:" + (100-n));
    }

    public static void main1(String[] args){
        Scanner sc=new Scanner(System.in);
        int F=sc.nextInt();
        double C=(5*F-160)/9.0;
        System.out.println((int)C);
    }
}